<!-- 我的树形下拉框 -->
<template>
<div class="my-select-tree-wp">

  <my-all-cascader v-model="data" :tree="aTree" size="mini" :clearable="true"></my-all-cascader>

</div>
</template>
<script>


import MyAllCascader from "./my-all-cascader.vue";

export default {
  name: 'my-select-tree',
  components: {
    MyAllCascader,
  },
  data () {
    return {
      // data: ['A01', 'A01A01', 'A02A01'],
      data: [],
      aTree: [{"label":"绵竹市血防管理所","value":"A01","children":[{"label":"剑南街道委员会","value":"A01A03","children":[{"label":"迎祥街社区","value":"A01A03A01"}]},{"label":"华丽街道血防所","value":"A01A02","children":[{"label":"绚丽社区委员会","value":"A01A02A01"},{"label":"tset测试","value":"A01A02A02"}]},{"label":"紫岩街道血防所","value":"A01A01","children":[{"label":"蔚泉社区委员会","value":"A01A01A01"}]}]},{"label":"测试部门","value":"A02","children":[{"label":"11111","value":"A02A01"}]}]
    }
  },
}
</script>
<style lang="scss" scoped>
.my-select-tree-wp {
  
}
</style>